import axiosInstance from "@/utils/request"
import type { IResponse } from "@/types/types"

/**
 * 商品评论
 */
export const RequestComment = (message:string,userId:number,productId:number):Promise<IResponse>=>{
    return axiosInstance({
         method: 'post',
         url: "/api/shop/comment/add",
         data: {
            message,
            userId,
            productId
         }
    })
}